package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjFaultSolution;
import com.zb.vo.FaultAnnexVo;

import java.util.List;

/**
 * <p>
 * 故障解决方案表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-07-31
 */
public interface ZjFaultSolutionService extends IService<ZjFaultSolution> {

    /**
     * 保存解决方案
     * @param custAccId 商家ID
     * @param faultId 故障表ID
     * @param solutions
     */
    void save(Long custAccId, Long faultId, List<FaultAnnexVo> solutions, List<Long> delIds);

    /**
     * 根据故障ID查询
     * @param faultId 故障ID
     * @return
     */
    List<ZjFaultSolution> getByFaultId(Long faultId);

    /**
     * 根据故障ID删除
     * @param faultIds 故障ID
     */
    void deleteBatchByFaultId(List<Long> faultIds);
}
